package cn.tedu.smartos.admin.mapper;

import cn.tedu.smartos.admin.pojo.entity.PointsGoods;
import cn.tedu.smartos.admin.pojo.vo.PointsGoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PointsGoodsMapper {
    int insert(PointsGoods pointsGoods);

    int update(PointsGoods pointsGoods);

    int deleteByIdInBatch(@Param("goodsIds") List<Long> goodsIds);

    List<PointsGoodsVO> list();

    PointsGoodsVO detail(Long goodsId);

    int updateStatus(@Param("goodsId") Long goodsId, @Param("isActive") Integer isActive);
}